package com.gadgets.framework.statusmach.repository;

import com.gadgets.framework.statusmach.dto.StatusMachineQueryDTO;
import com.gadgets.framework.statusmach.pojo.StatusMachine;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author UncleXiu
 * @version V1.0.0
 * @data 2020-09-27
 * 
 */
@Repository
@Mapper
public interface IStatusMachineRepository {

    /**
     * 条件查询状态机
     * @param machineQueryDTO   查询条件
     * @return                  查询结果
     */
    public List<StatusMachine> queryStatusMachine(@Param(value = "machineQueryDto") StatusMachineQueryDTO machineQueryDTO);

    /**
     * 新增状态机
     * @param list  状态机列表
     */
    public void insertStatusMachine(@Param(value = "list") StatusMachine list);

}
